/* 
* @Author: Marte
* @Date:   2017-03-13 17:51:55
* @Last Modified by:   Marte
* @Last Modified time: 2017-03-13 19:44:15
*/
function box1(b){
    for(var i=b;i>0;i--){
        document.write("<p style='text-align: center;'>");
        for(var j=1;j<i;j++){
            document.write("&nbsp;*&nbsp;")
        }
        document.write("</p>");
   }
}
function box2(a){
    for(var i=1;i<=a;i++){
        document.write("<p style='text-align: center;'>");
           
        for(var j=1;j<=i;j++){
            document.write("&nbsp;*&nbsp;");
        }

        document.write("</p>");
        } 
    }


function box3(c){
    for(var i=1;i<=c;i++){
        document.write("<p style='text-align: center;'>");
        for(var j=1;j<=i;j++){
            document.write("&nbsp;*&nbsp;");
        } 
        document.write("</p>"); 
    }
    for(var i=c;i>0;i--){   
        document.write("<p style='text-align: center;'>");   
        for(var j=1;j<i;j++){
            document.write("&nbsp;*&nbsp;")
        }
        document.write("</p>");
   }  
}
